<?php
$db_class = pc_base::load_model('classmany_model');
$db_team = pc_base::load_model('team_model');
$db_people = pc_base::load_model('people_model');
?>
{template "member","header"}

<!-- header -->
<header class="header bg2 clearfix">
	<h3 class="fl"><a href="{MEMBER_PATH}" title="返回上一级"><img src="{IMG_PATH2}icon/back.png" alt="返回上一级"></a></h3>
	<span class="con">我的关注</span>
</header>
<!-- / header -->
<div class="h_48"></div>

<!-- main -->
<main class="main">
	<script src="{JS_PATH2}tab.js"></script>
	<script type="text/javascript">
		$(function(){
			$(".content").all_tab({effect: "fade",trigger: "click",delayTime: 10});
		})
	</script>
	<div class="content">
		<ul class="nav_course2 tab border1 clearfix">
			<li><a href="javascript:;">关注讲师</a></li>
			<li><a href="javascript:;">关注机构</a></li>
		</ul>
		<ul class="tab_con guanzhulist">
{loop $teachers_arr $c_one}

			<li class="clearfix">
				<div class="photo fl"><a href="{$c_one[url]}"><img src="{$c_one[thumb]}"></a></div>
				<div class="guanzhulist_con fl">
					<div class="p_name">{$c_one[title]}<span class="ellipsis">{str_cut($c_one[con],100)}</span></div>
				</div>
				<div class="guanzhulist_con_rg fr">
					<a href="javascript:void(0);" class="d_guan js_like" data-catid="{$c_one[catid]}" data-id="{$c_one[id]}">关注</a>
					<a href="{$teacher[url]}" class="gz_more">&nbsp;</a>
				</div>
			</li>
{/loop}
		</ul>
		<ul class="tab_con guanzhulist" >
{loop $team_arr $c_one}
{php $team=$db_team->pkhs($c_one[a_id])}
			<li class="clearfix">
				<div class="photo fl"><a href="{$team[url]}"><img src="{$team[thumb]}"></a></div>
				<div class="guanzhulist_con fl">
					<div class="p_name">{$team[title]}<?=v2html($team[v])?><span class="ellipsis">{$team[small_content]}</span></div>
					<div class="guanzhulist_con_pic clearfix">{php echo $db_class->get('one_team',$team['id'])}</div>
				</div>
				<div class="guanzhulist_con_rg fr">
					<a href="javascript:void(0);" class="d_guan js_like" data-catid="{$team[catid]}" data-id="{$team[id]}">关注</a>
					<a href="{$team[url]}" class="gz_more">&nbsp;</a>
				</div>
			</li>
{/loop}
		</ul>
	</div>
</main>

{template "member","footer"}